<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
        "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <title></title>
    <style>
        div.test1
        {
            background-color: gray;
        }
            
        div > .test1
        {
            background-color: yellow;
        }
        
        div:first-child
        {
            background-color: red
        }
    </style>
</head>
<body>
<div>
    <div class='test1'>RED</div>
</div>
</body>
</html>